<h2>DESCRIPTION</h2>

<em>d.text</em> draws text in the active display frame on
the graphics monitor.  Text can be provided through
standard input or redirected from a file (using the UNIX
redirection mechanism).

In addition to the options provided on the command line,
colors, text size, font type, rotation angle, and boldness can be adjusted
with commands in the standard input (i.e., if the user
invokes <em>d.text</em> without options on the command
line, and then assigns values to these options on lines
within the standard input).

<h3>Commands:</h3> 

<dl>

<dt><b>.C</b> <em>color</em> 
<dd>
(where <em>color</em> is one of the available colors) causes text appearing on 
subsequent lines to be drawn in that color. 


<dt><b>.G</b> <em>color</em>
<dd>
(where <em>color</em> is one of the available colors) causes the background of text
appearing on subsequent lines to be drawn in that color.

<dt><b>.S </b> <em>size</em>
<dd>
(where <em>size</em> is a percentage within the range 0 to
100) adjusts text size.  Note that a size of 10 would allow
10 lines to be drawn in the active display frame, 5 would
allow the drawing of 20 lines, and 50 would allow the
drawing of 2 lines.

<p><dt><b>.F</b> <em>font</em>
<dd>
(where <em>font</em> is one of the fonts known by the GRASS program 
<em><a href="d.font.html">d.font</a></em>) manipulates
the font type. Available fonts are listed in the GRASS manual entry for 
<em><a href="d.font.html">d.font</a></em>. 
The default font type used (if unspecified by the user) 
is <em>romans</em>.
<!-- Run the GRASS macro 
<em><A  HREF="show.fonts.sh.html">show.fonts.sh</a></em> 
to see what these fonts look like. -->

<dt><b>.R </b> <em>rotation</em>
<dd>
(where <em>rotation</em> is an angle in degrees, counter-clockwise)
to rotate the text.

<dt><b>.B 1</b>
<dd>stipulates that following text be printed in <b>bold</b>.
This command means <em>bold on</em>.

<dt><b>.B 0</b>
<dd> turns <em>bold off</em> of all text appearing on lines beneath 
     it. (<em>Bold off</em> is used by default, if unspecified by the user.) 

</dl>

<h2>EXAMPLE</h2>

The following command will print the short phrase "This is
a test of d.text" in the active display frame using the
color yellow, in bold, and using 4/100'ths (4%) of the
active frame's vertical space per line:
<p>

<!--
<div class="code"><pre>
<b>d.text</b> &lt;&lt; EOF
.C yellow
.G grey
.S 4 
.B 1
This is a test of d.text
EOF
</pre></div>
The user presses <em>control-d</em> 
(the "Ctrl" and "d" keys) to end input to <em>d.text</em> (equal to EOF).
-->

<div class="code"><pre>
d.text text="This is a test of d.text" color=yellow bgcolor=gray size=4
</pre></div>

<div align="center" style="margin: 10px">
<img src='d_text.png' width="600" border="1">
<br>
<i>Displayed Text</i>
</div>

<h2>NOTES</h2>

Note that the GRASS command 
<em><a href="d.title.html">d.title</a></em> creates map TITLEs in a format 
suitable for input to <em>d.text</em>.

<p>
<em>d.text</em> needs escape sequences that can be used
within lines to change colors, boldness, and perhaps size.

<h2>SEE ALSO</h2>

<em><a href="d.font.html">d.font</a></em><br>
<em><a href="d.title.html">d.title</a></em><br>
<!-- <em><a href="show.fonts.sh.html">show.fonts.sh</a></em><br> -->
<em><a href="d.labels.html">d.labels</a></em><br>


<h2>AUTHOR</h2>

James Westervelt, 
U.S. Army Construction Engineering 
Research Laboratory
<p>Updates by Huidae Cho

<!--
<p>
<i>Last changed: $Date$</i>
-->
